// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.NavSellOrderFBA;
import com.fowo.api.model.nav.sell.order.fba.NavSellOrderFBAItemVo;
import com.fowo.api.model.nav.sell.order.fba.NavSellOrderFBASearchParamPo;
import com.fowo.api.model.nav.sell.order.fba.NavSellOrderFBAVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface NavSellOrderFBAMapper extends BaseMapper<NavSellOrderFBA> {
  Page<NavSellOrderFBAItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  List<OptionItem<NavSellOrderFBAItemVo>> searchOptions(
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  List<NavSellOrderFBAItemVo> search(
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") NavSellOrderFBASearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") NavSellOrderFBASearchParamPo search);
  Long getIdByOriginalOrderId(@Param("originalOrderId") String originalOrderId);

  List<Long> getIdsByOriginalOrderId(@Param("list") List<String> list);

  String getOriginalOrderIdById(@Param("id") Long id);

  List<Map<String, Object>> getOriginalOrderIdByIds(
    @Param("ids") List<Long> ids
  );
  NavSellOrderFBAVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<NavSellOrderFBAItemVo> fBAAllOrder(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> fBAAllOrderIds(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取全部的总数
   */
  Long fBAAllOrderCount(@Param("search") NavSellOrderFBASearchParamPo search);

  /**
   * 全部分页
   */
  Page<NavSellOrderFBAItemVo> fBAAllOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  Date fBAAllOrderLastUpdateTime(
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  /**
   * 未发货
   */
  List<NavSellOrderFBAItemVo> fBAPendingDeliverOrder(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取未发货编号列表
   */
  List<Long> fBAPendingDeliverOrderIds(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取未发货的总数
   */
  Long fBAPendingDeliverOrderCount(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 未发货分页
   */
  Page<NavSellOrderFBAItemVo> fBAPendingDeliverOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  Date fBAPendingDeliverOrderLastUpdateTime(
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  /**
   * 异常
   */
  List<NavSellOrderFBAItemVo> fBAErrorDeliverOrder(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取异常编号列表
   */
  List<Long> fBAErrorDeliverOrderIds(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取异常的总数
   */
  Long fBAErrorDeliverOrderCount(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 异常分页
   */
  Page<NavSellOrderFBAItemVo> fBAErrorDeliverOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  Date fBAErrorDeliverOrderLastUpdateTime(
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  /**
   * 已发货
   */
  List<NavSellOrderFBAItemVo> fBADeliverOrder(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取已发货编号列表
   */
  List<Long> fBADeliverOrderIds(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 获取已发货的总数
   */
  Long fBADeliverOrderCount(
    @Param("search") NavSellOrderFBASearchParamPo search
  );

  /**
   * 已发货分页
   */
  Page<NavSellOrderFBAItemVo> fBADeliverOrderPage(
    @Param("page") Page page,
    @Param("search") NavSellOrderFBASearchParamPo search
  );
  Date fBADeliverOrderLastUpdateTime(
    @Param("search") NavSellOrderFBASearchParamPo search
  );
}
